﻿//
// Created: 2018/9/6
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Util
{
    public class  Category:IEntity
    {

        ///<summary>
        ///
        ///<summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int CategoryID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int DisplayOrder  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Name  { get; set; }
        ///<summary>
        ///价格范围
        ///<summary>
        public string PriceRange  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int ParentId  { get; set; }
        ///<summary>
        ///级别
        ///<summary>
        public int Layer  { get; set; }
        ///<summary>
        ///是否有子节点
        ///<summary>
        public int HasChild  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Path  { get; set; } 
         
    
       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}